if (`menuSet -q -exists nDynamicsMenuSet`) { workingMode nDynamicsMenuSet; } else { warning "nDynamics Menu Set not found."; }